//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package common;

import java.util.Calendar;
import java.util.regex.Pattern;

public class Logger {
    private static final Pattern ENDL_DELIM_PATTERN = Pattern.compile("(?<=\n)");

    public Logger() {
    }

    public static String formatPT(String name, String text) {
        Calendar now = Calendar.getInstance();
        String prefix = String.format("[%s] %02d/%02d/%02d/%02d/%03d", new Object[]{name, Integer.valueOf(now.get(5)), Integer.valueOf(now.get(11)), Integer.valueOf(now.get(12)), Integer.valueOf(now.get(13)), Integer.valueOf(now.get(14))});
        return format(prefix, text);
    }

    public static String formatP(String name, String text) {
        return format("[" + name + "]", text);
    }

    private static String format(String prefix, String text) {
        String retval = new String();
        String[] var6;
        int var5 = (var6 = ENDL_DELIM_PATTERN.split(text)).length;

        for(int var4 = 0; var4 < var5; ++var4) {
            String line = var6[var4];
            retval = retval + prefix + line;
        }

        return retval;
    }
}
